package com.syxx.oa.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 权限表
 * @author Lenovo
 *
 */
@Entity
@Table(name="t_authority")
public class Authority implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	//权限id
	private Long autId;
	//角色 Id
	private EmpLevel empLevel;
    
	//功能Id
	private Sysfunction sysfunction;
	
	//相应权限
	private String autName;

	
	@Id @GeneratedValue
	public Long getAutId() {
		return autId;
	}

	public void setAutId(Long autId) {
		this.autId = autId;
	}

	@ManyToOne
	public EmpLevel getEmpLevel() {
		return empLevel;
	}

	public void setEmpLevel(EmpLevel empLevel) {
		this.empLevel = empLevel;
	}

	@ManyToOne 
	public Sysfunction getSysfunction() {
		return sysfunction;
	}

	public void setSysfunction(Sysfunction sysfunction) {
		this.sysfunction = sysfunction;
	}

	public String getAutName() {
		return autName;
	}

	public void setAutName(String autName) {
		this.autName = autName;
	}
	
	
	
}
